// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'; // 引入ElementUI核心JS
import 'element-ui/lib/theme-chalk/index.css'; // 引入ElementUI核心样式
Vue.use(ElementUI) // 告诉Vue我要使用ElementUI
// import MockUser from './js/user/user.js'
Vue.config.productionTip = false

// 在main.js中引入axios
import axios from "axios"
// 配置公共路径
axios.defaults.baseURL="https://www.fastmock.site/mock/c3481783ee6082abb78e8e6509896b32/pethmoe"
// 配置axios全局配置,可以用$http代替axios
Vue.prototype.$http= axios

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
